.comments {
  .sub-title {
    font-size: 18px;
    .fas {
      font-size: 28px;
      margin-right: 8px;
    }
  }

  .pagination {
    margin: 20px auto;
  }

  &.comments-inline {
    width: 450px;

    .editor-toolbar,
    .comment-watch-box {
      display: none;
    }
    .rich-editor-inline .editor-text > div {
      min-height: auto !important;
    }

    .comment,
    .new-comment {
      padding: 8px 0 8px 28px !important;
      .avatar-box {
        top: 9px;

        .avatar {
          @extend .avatar-tiny;
        }
      }

      .markdown-body {
        font-size: 14px;
        p:last-child {
          margin-bottom: 0;
        }
      }
    }
  }

  .comment {
    border-bottom: 1px dashed #e6e6e6;
    .info {
      margin-bottom: 8px;
      position: relative;
      .user-name {
        font-size: 14px;
        @extend .text-main;
      }
      .time {
        font-size: 12px;
        @extend .text-gray-light;
      }
      .opts {
        position: absolute;
        right: 0;
        top: 5px;
        font-size: 14px;
        display: block;
        color: #555;

        .reaction-box {
          float: left;
        }

        & > a {
          width: 20px;
          height: 20px;
          margin-left: 5px;
          display: inline-block;
          text-align: center;
        }
        & > a:hover,
        summary > .fas:hover .details-overlay[open] .fas {
          color: #555 !important;
        }
        & > a,
        summary > .fas,
        & > .fas {
          color: #ccc;
        }

        .add-reaction-popover.dropdown-menu-ne {
          left: -2px;
        }

        .add-reaction-btn {
          padding: 0;
          border: 0;
          display: inline-block;
          float: none;
          margin-right: 0;
          height: auto;
          margin-top: 3px;

          i.fas {
            color: #ccc;
          }
          &:hover {
            .fas {
              color: #555 !important;
            }
          }
        }
      }
    }

    &:hover {
      .opts {
        display: block;
      }
    }

    .markdown-body {
      .heading-anchor {
        display: none;
      }
    }

    .in-reply-to {
      margin-bottom: 10px;
      border-radius: 3px;
      background: rgba(241, 245, 250, 0.68);
      padding: 8px 15px;
      font-size: 14px;

      .in-reply-link {
        color: #666;
        display: block;

        .user-name {
          color: #333;
          font-weight: bold;
        }
        .comment-id {
          color: #333;
        }
        .body {
          margin-top: 8px;
          font-size: 14px;
        }
      }
    }

    .reaction-box-empty {
      display: none;
    }
  }
}

.comment-watch-box {
  .watch-button-group {
    position: relative;
    .form-label {
      font-size: 15px;
    }
    .btn-radio {
      display: inline-block;
      position: absolute;
      right: 0;
      bottom: 5px;
      width: 30px;
      height: 10px;
      border-radius: 5px;
      background: #e6e6e6;
      &::after {
        display: block;
        position: absolute;
        content: "";
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #bebebe;
        box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.14);
        left: 0;
        top: -3px;
      }
      &.checked {
        background: #acc6ff;
        &::after {
          left: auto;
          right: 0;
          background: $primary;
          box-shadow: 0px 3px 5px 0px rgba(47, 112, 255, 0.39);
        }
      }
    }
  }
}

.comments .comment,
#new_comment {
  position: relative;
  padding: 15px 0 15px 50px;
  .avatar-box {
    position: absolute;
    top: 18px;
    left: 0px;
  }

  .rich-editor-inline {
    max-width: 750px;
  }
}

#new_comment {
  padding: 0px;
  .avatar-box {
    display: none;
  }
}

@media (min-width: 768px) {
  #new_comment {
    padding: 15px 0 15px 50px;
    .avatar-box {
      display: block;
    }
  }
}

#new_comment {
  margin-bottom: 20px;
  textarea.form-control {
    border-color: #d9d9d9 !important;
    height: 100px;
    min-height: 50px;
  }

  .form-group {
    margin-top: 0;
  }
  .form-actions {
    .btn {
      float: left;
    }

    .in-reply-info {
      float: left;
      margin-top: 6px;
      margin-left: 10px;
      color: rgb(155, 155, 155);

      .user-name {
        color: #333;
        font-weight: bold;
      }
      .comment-id {
        color: #333;
      }

      .close {
        color: #333;
        margin-left: 6px;
      }
    }
  }
}
